export const noticeOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  labelWidth: '100',
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: '公告标题',
    span: 24,
    prop: 'title',
    search: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '公告图片',
    span: 24,
    prop: 'coverPath',
    editDisplay: false,
    addDisplay: false,
    slot: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '公告图片',
    span: 24,
    prop: 'fileList',
    slot: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
    showColumn:false,  
    props: {
      label: 'id',
      value: 'fileUrl'
    },
    propsHttp: {
      res: 'data',
      url: 'fileUrl',
      name: 'id'
    },         
    type: 'upload',
    listType: 'picture-card',
    action: '/admin/ossFile/uploadFile',
    tip: '建议尺寸640*480，大小不要超过1M',
  },{
    label: '简介',
    span: 24,
    hide: true,
    type: 'textarea',
    prop: 'content',
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '内容',
    span: 24,
    hide: true,
    prop: 'synopsis',
    formslot: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '发布状态',
    span: 24,
    type: 'radio',
    search: true,
    dicData: [{
      label: '未发布',
      value: 0
    }, {
      label: '已发布',
      value: 1
    }],
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
    prop: 'status'
  },{
    label: '发布时间',
    span: 24,
    editDisplay: false,
    addDisplay: false,
    prop: 'startPubdate'
  }]
}


export const messageOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  labelWidth: '200',
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: '通知标题',
    span: 24,
    prop: 'title',
    search: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '已读',
    span: 24,
    editDisplay: false,
    addDisplay: false,
    prop: 'readNum'
  },{
    label: '发布者',
    span: 24,
    editDisplay: false,
    addDisplay: false,
    prop: 'createUser'
  },
  {
    label: '发送角色',
    span: 24,
    prop: 'type',
    type: 'radio',
    dicData: [{
      label: '学员',
      value: 1
    }, {
      label: '培训基地',
      value: 2
    }, {
      label: '全部人员',
      value: 3
    }],
    rules: [{
      required: true,
      message: "请输入",
      trigger: "blur"
    }],
  },
  {
    label: '内容',
    span: 24,
    hide: true,
    formslot: true,
    prop: 'content',
    rules: [{
      required: true,
      message: "请输入",
      trigger: "blur"
    }],
  },{
    label: '附件',
    span: 24,
    prop: 'listFiles',
    hide: true,
    props: {
      label: 'id',
      value: 'fileUrl'
    },
    propsHttp: {
      res: 'data',
      url: 'fileUrl',
      name: 'id'
    },         
    type: 'upload',
    action: '/admin/ossFile/uploadFile',
    tip: '建议尺寸640*480，大小不要超过1M',
  },{
    label: '发布状态',
    span: 24,
    type: 'radio',
    editDisplay: false,
    addDisplay: false,
    search: true,
    dicData: [{
      label: '未发布',
      value: 0
    }, {
      label: '已发布',
      value: 1
    }],
    prop: 'status'
  },{
    label: '发布开始时间',
    span: 24,
    editDisplay: false,
    addDisplay: false,
    prop: 'startPubdate'
  }]
}



export const bannerOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  selection: true,
  searchMenuSpan: 6,
  labelWidth: '200',
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: '轮播图标题',
    span: 24,
    prop: 'name',
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '轮播图',
    span: 24,
    prop: 'imgUrl',
    slot: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],             
    type: 'upload',
    listType: 'picture-img',
    action: process.env.VUE_APP_BASE_API + '/admin/uploadFile',
    tip: '建议尺寸120*90，大小不要超过1M',
    propsHttp: {
      url: 'data',
    }
  },{
    label: '状态',
    span: 24,
    prop: 'delFlag',
    type: 'radio',
    dicData: [{
      label: '正常',
      value: 0
    }, {
      label: '停用',
      value: 1
    }],
  },{
    label: '跳转路径',
    span: 24,
    prop: 'roundRobin'
  },{
    label: '排序',
    span: 24,
    prop: 'sort',
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  }]
}


export const annunciateOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  labelWidth: '100',
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: '标题',
    span: 24,
    prop: 'title',
    search: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '创建人',
    span: 24,
    prop: 'createUserName',
    editDisplay: false,
    addDisplay: false,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '内容',
    span: 24,
    hide: true,
    prop: 'content',
    type: 'textarea',
    formslot: true,
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
  },{
    label: '附件',
    span: 24,
    prop: 'fileList',
    hide: true,
    props: {
      label: 'id',
      value: 'fileUrl'
    },
    propsHttp: {
      res: 'data',
      url: 'fileUrl',
      name: 'id'
    },         
    type: 'upload',
    action: '/admin/ossFile/uploadFile',
    tip: '建议尺寸640*480，大小不要超过1M',
  },{
    label: '状态',
    span: 24,
    type: 'radio',
    dicData: [{
      label: '启用',
      value: 0
    }, {
      label: '禁用',
      value: 1
    }],
    rules: [{
      required: true,
      message: "请选择",
      trigger: "blur"
    }],
    prop: 'isDel'
  }]
}